import React from 'react';
import './index.css'

import {getBaokuanData} from '../../../../api/data.js'
import {DatePicker ,Cascader } from 'antd'

class Com extends React.Component{
	constructor() {
	    super();
		this.state={
			bkData:[]
		}
	}
	componentDidMount(){
		getBaokuanData().then(data=>{
			this.setState({
				bkData:data.data.data.item_list
			})
			console.log("bkData,",this.state.bkData);
		})
	}
	
	render(){
		return <div className="baokuan">
			{
				this.state.bkData.map(item=>(
					<div className="product_item">
						<img src={item.over_image_url} width="30%" />
						<p>
							{item.item_name}
						</p>
					</div>
				))
			}
			
		</div>;
	}
}
export default Com;//导出组件